<%@page import="uiux4.BeanGugudan" %>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title>beanGugudan2.jsp</title>
</head>
<body>
<%
	int dan1 = 3;
	int dan2 = 7;
	BeanGugudan g = new BeanGugudan();
	String r="";
	if(request.getMethod().equals("POST"))
	{
		dan1 = Integer.parseInt(request.getParameter("dan1"));
		dan2 = Integer.parseInt(request.getParameter("dan2"));
		r = g.process(dan1, dan2);
	}
%>
	<div class=title>JavaBean Gugudan(2)</div>
	<form name='gugudan_form' method='post' id='gugudan_form' action='main.jsp?inc=./jsp/beanGugudan2.jsp'>
		<label>Gugudan</label>
		<input type=text size=3 name='dan1' id='dan1' value=<%=dan1 %>>
		~
		<input type=text size=3 name='dan2' id='dan2' value=<%=dan2 %>>
		<input type=submit value='gugu~' id='okBtn'>
	</form>
	<div id='result'>
		<%=r.replace("\n", "<br>") %>
	</div>
</body>
</html>